package com.li.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.li.domain.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
    List<Dept> listQueryDept(@Param("name") String name);

    Integer[] getdeptIdsById(@Param("deptId") Integer deptId);

    List<Dept> listQueryDeptTree(@Param("dept") Dept dept);
}